#include "imageprocess.h"
#include "mycamera.h"
#include <windows.h>
#include <QThread>

ImageProcess::ImageProcess(QObject *parent): QObject(parent)
{
    m_pImageProvider=new ImageProvider;
}

void ImageProcess::setImg(const QImage& imgQ)
{
    m_imgQ=imgQ;
}

void ImageProcess::processImg()
{
    Sleep(1000);//模拟图像处理的耗时操作
    qDebug() << "Process's Thread : " << QThread::currentThreadId();
    m_pImageProvider->m_imgQ=m_imgQ;
    //emit callQmlRefreshImg();
    emit processFinished();
}
